<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
	身高<input type="text" id="num"/ >
	体重<input type="text" id="num1"/>
	<input type="button" onclick="bian()" value="判断"/>
 </body>
	 <script>
	
	function bian(){
	var x = num.value;
	var y = num1.value;
	var z =(x-108)*2;
	var a = y - z;
		if (a<=10 && a>=-10)
		{document.write("合格")
		}else{
		 
		document.write("不合格")
		}
 }
 
 
 </script>
</html>
